<script setup>
import { createMessage } from "@/components/Message/method";
</script>

<template>
  <button @click="createMessage({ message: '你好', type: 'success' })">
    success
  </button>
  <button @click="createMessage({ message: '你好', type: 'warning' })">
    warning
  </button>
  <button @click="createMessage({ message: '你好', type: 'error' })">
    error
  </button>
  <button @click="createMessage({ message: '你好', type: 'info' })">
    info
  </button>
</template>

<style scoped></style>
